﻿<%@ Page Title="" Language="C#" MasterPageFile="~/SkillifyMaster.master" AutoEventWireup="true" CodeFile="ManageTaskAdmin.aspx.cs" Inherits="ManageTaskAdmin" %>

<%@ Register src="~/UserControls/UserSelection.ascx" tagname="UserSelection" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        
        .style1
        {
            font-size: medium;
        }
        .style2
        {
            width: 71px;
        }
        .style4
        {
            width: 180px;
        }
    </style>
    <script type="text/javascript">
        function OnClick() {
            if (divStartDtCalendar.style.display == "none") {
                divStartDtCalendar.style.display = "";

            }

            else {
                divStartDtCalendar.style.display = "none";

            }


        }
        function OnCalendarClick() {
            if (divEndDtCalendar.style.display == "none") {
                divEndDtCalendar.style.display = "";

            }

            else {
                divEndDtCalendar.style.display = "none";

            }


        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table border="0">
    <tr>
    <td colspan="4" class="style1"align="right">
        <h2>Manage Task</h2>
    
    </td>
    
    
    </tr>
   
    <tr>
    <td colspan="4">
    <table align="left" cellspacing="5" style="border: 4px outset orange;" width="100%">
    <tr><td colspan="4"><asp:Button ID="btnCreateTask" runat="server" Text="Create Task" 
            onclick="btnCreateTask_Click" BackColor="#E49642" BorderColor="#CC7A24" 
            ForeColor="White" /></td></tr>
    <tr>

    <td class="style4">
        Task Type &nbsp;
        <asp:DropDownList ID="ddlTaskType" runat="server" Width="115px" 
            AutoPostBack="True" Height="22px" />
     </td>
     <td>

        &nbsp;&nbsp;&nbsp;
        Status  &nbsp;&nbsp;
        <asp:DropDownList ID="DropDownList1" width="110px" runat="server">
            <asp:ListItem Value="0">All</asp:ListItem>
            <asp:ListItem Value="1">Parked</asp:ListItem>
            <asp:ListItem Value="1">Scheduled</asp:ListItem>
            <asp:ListItem Value="2">InProgress</asp:ListItem>
            <asp:ListItem Value="3">Pending</asp:ListItem>
            <asp:ListItem Value="4">Completed</asp:ListItem>
        </asp:DropDownList>
        </td>
        </tr>
    

    

    <tr>
    <td class="style2" colspan="4">
       
        <uc1:UserSelection ID="UserSelection1" runat="server" /><br />
       
    </td>
    </tr>

    <tr>
    <td  colspan="4">
        <asp:Button ID="btnClearSearch" runat="server" Text="Clear Search" 
             BackColor="#E49642" BorderColor="#CC7A24" 
            ForeColor="White" />
       &nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Button ID="btnSearch" runat="server" Text="Search" 
             BackColor="#E49642" BorderColor="#CC7A24" 
            ForeColor="White" Width="87px" />
    </td>
    </tr>

  
  </table>
  </td>
 </tr>
   <tr>
    <td colspan="4">
        <asp:GridView ID="gvTasksAvailable" runat="server" 
            AutoGenerateColumns="False"  AllowPaging="True" 
            DataKeyNames="TaskID" 
            BackColor="LightGoldenrodYellow" BorderColor="Tan" BorderWidth="1px" 
            CellPadding="2" ForeColor="Black" GridLines="None"  AutoPostBack="True"
           
            Width="935px" 
            onselectedindexchanged="gvTasksAvailable_SelectedIndexChanged">  <%--onsorted="gvSubject_Sorted"--%>

         <AlternatingRowStyle BackColor="PaleGoldenrod" />
        <Columns>
   <asp:ButtonField ButtonType="Link" DataTextField="TaskID" HeaderText="TaskID"  SortExpression="TaskID" CommandName="Select" />                            
     <asp:BoundField DataField="TaskName" HeaderText="TaskName" SortExpression="TaskName" />
     <asp:BoundField DataField="TaskDesc" HeaderText="TaskDesc" SortExpression="TaskDesc" />
    <asp:BoundField DataField="TaskType" HeaderText="TaskType" SortExpression="TaskType" />
     <asp:BoundField DataField="vc_FirstName" HeaderText="TaskOwner"  />
     <asp:BoundField DataField="SubjectName" HeaderText="SubjectName" SortExpression="SubjectName" /> 
      <asp:BoundField DataField="topicname" HeaderText="Topicname" SortExpression="topicname" />                 
      <asp:BoundField DataField="LibraryId" HeaderText="LibraryId" SortExpression="LibraryId" />                                 
      <asp:BoundField DataField="IsVerificationRequired" HeaderText="IsVerify" /> 
      <asp:BoundField DataField="TestName" HeaderText="TestName" SortExpression="TestName" /> 
      <asp:BoundField DataField="StartDate" HeaderText="StartDate" SortExpression="StartDate" />  
       <asp:BoundField DataField="EndDate" HeaderText="ExpiryDate" SortExpression="EndDate" />                                                                                                                                                                                                                                
        <asp:BoundField DataField="status" HeaderText="status"  />                                                                                                                                                                                                                                      


       <%--    <asp:ButtonField ButtonType="Link" DataTextField="TaskTypeId" CommandName="Select" HeaderText="TaskTypeId"
                    InsertVisible="False"  SortExpression="TaskTypeId" />--%>
        </Columns>
            <EditRowStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            <EmptyDataRowStyle HorizontalAlign="Center" VerticalAlign="Middle" />
         <FooterStyle BackColor="Tan" />
            <HeaderStyle BackColor="#CB6811" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" 
                HorizontalAlign="Center" />
            <RowStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            <SelectedRowStyle BackColor="#E49642" ForeColor="GhostWhite" />
            <SortedAscendingCellStyle BackColor="#FAFAE7" />
            <SortedAscendingHeaderStyle BackColor="#DAC09E" />
            <SortedDescendingCellStyle BackColor="#E1DB9C" />
            <SortedDescendingHeaderStyle BackColor="#C2A47B" />
        </asp:GridView>
        <br />
    </td>
    
    </tr>
    <tr>
    <td class="style2" >

        
    </td>
   
    </tr>
    
   <tr><td></td></tr>
    </table>
</asp:Content>

